package com.vertx.starter.mysql;

import com.vertx.starter.util.JsonObjectConfig;
import io.vertx.core.Vertx;
import io.vertx.core.json.JsonArray;
import io.vertx.core.json.JsonObject;
import lombok.Getter;

@Getter
public class MysqlConfig extends JsonObjectConfig {

    private JsonArray configs;

    private String configDbName;


    public MysqlConfig(Vertx vertx, String path) {
        super(vertx, path);
    }

    @Override
    public void parse(JsonObject configJson) {
        configs = configJson.getJsonArray("config");
        configDbName = configJson.getString("configDb");
    }
}
